<template>
  <el-container class="container">
    <el-row class="tac">
      <el-col>
        <el-menu class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose"
          background-color="#fff">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>档案管理</span>
            </template>
            <el-menu-item-group>
              <router-link to="/xxx">
                <el-menu-item index="1-1">新增档案</el-menu-item>
              </router-link>
              <router-link to="/filesManager"> 
                <el-menu-item index="1-2">档案信息</el-menu-item>
              </router-link>
              
            </el-menu-item-group>
          </el-submenu>

          <router-link to="/epManager">
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">企业信息管理</span>
            </el-menu-item>
          </router-link>

          <router-link to=""> 
            <el-menu-item index="4">
            <i class="el-icon-setting"></i>
            <span slot="title">第三方公司评估记录</span>
          </el-menu-item>
          </router-link>
          
        </el-menu>
      </el-col>
    </el-row>
    <router-view />
  </el-container>
</template>

  

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>
<style lang="less" scoped>
.tac {
  width: 200px;
  height: 100%;
  background-color: #fff;
}

.el-menu-vertical-demo {
  a {
    text-decoration: none;
  }
}
</style>